using ns;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace ns
{
    public class magicoutState : FSMState
    {
        public override void Init()
        {
            StateID = FSMStateID.magicout;
        }

        public override void EnterState(FSMBase fsm)
        {
            base.EnterState(fsm);
            fsm.animator.SetBool(fsm.chParams.magic_o, true);
        }

        public override void ExitState(FSMBase fsm)
        {
            base.ExitState(fsm);
            fsm.animator.SetBool(fsm.chParams.magic_o, false);
            fsm.transform.position += new Vector3Int(1, 0, 0);
            fsm.magicover = false;
        }
    }
}

